/**
 * 
 */
package t4j.generics;

import java.io.FileInputStream;
import java.io.ObjectInputStream;
import java.util.List;


/**
 * @author sz
 *
 * create time：2013-1-22
 */
public class ClassCasting {

	public void f(String[] args) throws Exception{
		ObjectInputStream in = new ObjectInputStream(new FileInputStream(args[0]));
		
		List<Widget> lw2 = List.class.cast(in.readObject());
	}
}
